package cn.ibizlab.odoo.core.odoo_digest.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_digest.domain.Digest_digest;
import cn.ibizlab.odoo.core.odoo_digest.filter.Digest_digestSearchContext;

/**
 * 实体[Digest_digest] 服务对象接口
 */

public interface IDigest_digestService{
     boolean create(Digest_digest digest_digest) ;
     void updateBatch(List<Digest_digest> digest_digests, int batchSize) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     Digest_digest get(Integer id) ;
     Digest_digest get(Digest_digest digest_digest) ;
     boolean remove(Integer id) ;
     boolean update(Digest_digest digest_digest) ;
     void createBatch(List<Digest_digest> digest_digests, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Digest_digest> searchDefault(Digest_digestSearchContext context) ;

    /**
     * 根据EMail模板查询
     */
     Page<Digest_digest> selectByOdoo_template(Integer id) ;

    /**
     * 根据公司查询
     */
     Page<Digest_digest> selectByOdoo_company(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Digest_digest> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Digest_digest> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Digest_digest convert2Domain(cn.ibizlab.odoo.core.client.model.Idigest_digest model ,Digest_digest domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Idigest_digest convert2Model(Digest_digest domain , cn.ibizlab.odoo.core.client.model.Idigest_digest model);

}
